﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure.Aspect.Extensions
{
    public static class QueueExtensions
    {
        public static Queue<T> Clone<T>(this Queue<T> target)
        {
            Queue<T> result = new Queue<T>();
            foreach (var item in target)
            {
                result.Enqueue(item);
            }
            return result;
        }
    }
}
